<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="../../js/mui.min.js"></script>
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/share/common.css" />
		<link rel="stylesheet" href="../../css/shopping/conformOrder.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left header-left"></a>
			<h1 class="mui-title">确认订单</h1>
		</header>
		<div class="mui-content" ng-app="" ng-controller="orders" ng-cloak>
			<!--头部选择自提还是物流-->
			<div class="main_getway addborder">
				<div class="main_getway_select">
					<div class="col2" style="text-align:right;padding-right: 40px;">
						<input type="radio" ng-click="hid()" name="way" value="自提" checked="checked" id="self" /> 自提
					</div>
					<div class="col2" style="padding-left: 40px;" id="fastway">
						<input type="radio" ng-click="show()" name="way" value="物流配送" id="way" /> 物流
					</div>
				</div>
			</div>
			<!--物流基本信息-->
			<div class="main_way_address addborder" id="address">
				<div class="clearfix">
					收货人：{{address.shipname}}
					<div class="main_way_change pull_right" ng-click="alterAddress()">
						[修改地址]
					</div>
				</div>
				<div>
					联系电话：{{address.phone}}
				</div>
				<div class="clearfix" style="width:70%;">
					收货地址：{{address.province +address.city + address.area + address.shipaddress }}
				</div>

				<select class="selectFast" ng-model="kdSelected" ng-options="kuaidi as kuaidi.name for kuaidi in kuaidis" ng-change="kdAlter()"></select>

			</div>
			<!--订单列表--->
			<ul class="main_product">
				<li ng-repeat="goods in goodsList">
					<div class="box_orient_h">
						<div class="main_product_touxiang">
							<img ng-src="{{goods.picture}}">
						</div>
						<div class="main_product_message flex-b">
							<div class="main_product_title">
								{{goods.name}}
							</div>
							<div class="main_product_lei">
								<span class="main_design_color"><a ng-hide="goods.ngcolor">颜色:{{goods.specColorpr}};</a><a ng-hide="goods.ngsize">尺寸:{{goods.specSizepr}};</a><a ng-hide="goods.ngspec">规格:{{goods.specSpec}};</a><a ng-hide="goods.ngmodel">型号:{{goods.specModel}};</a></span>
							</div>
							<div class="dingjin" ng-show='goods.showmoney'>
								订金￥{{goods.deposit}}
							</div>
							<div class="main_product_p">
								￥{{goods.nowPrice}}
							</div>
							<div class="main_product_n">
								x{{goods.number}}
							</div>
						</div>
					</div>
					<div class="gift" ng-repeat="gift in goods.giftList">
						<span>赠品</span> {{gift.name}} {{gift.price}}
					</div>
					<div class="gift" ng-repeat="change in goods.exchangeList">
						<span>换购</span> {{change.name}} {{change.price}}
					</div>
					<div class="smallsum">
						小计：￥{{goods.priceall}}
					</div>
					<div class="smallsum">
						应付：￥{{goods.totalPay}}
					</div>
				</li>
			</ul>
			<!--发票基本信息--->
			<div class="main_fapiao clearfix" ng-click="alterInvoice()">
				<div class="pull_left">
					发票信息
				</div>
				<ul class="pull_right">
					<li id="first">
						{{invoice.type}}
					</li>
					<li>
						{{invoice.head}}
					</li>
					<li>
						{{invoice.content}}
					</li>
				</ul>
			</div>
			<!---付款方式与合计-->
			<ul class="paylistway" id="paylistway">
				付款方式
				<li class="active" id="3" style="margin-left: 13px;" ng-click="allpay(allpaylists,allPay,'3')" onclick="change('3')">
					全额支付
				</li>
				<li id="1" class="lis" onclick="change('1')" ng-click="allpay(handsellists,handselPay,'1')">
					订金支付
				</li>
				<li id="2" class="lis" onclick="change('2')" ng-click="allpay(deliverylists,deliveryPay,'2')">
					货到付款
				</li>
			</ul>
			<div class="paylist" style="border-top: 1px solid #e9e9e9;">
				<span>{{sumNum}}件商品合计：</span>￥{{sumMon}}
			</div>
			<div class="paylist">
				<span>运费：</span>+￥{{freight}}
			</div>
			<div class="paylist">
				<span>折扣：</span>-￥{{discount}}
			</div>
			<div class="paylist">
				<span>立减金额：</span>-￥{{reduceAmount}}
			</div>
			<div class="pay_way" style="font-size: 14px; border-top: 1px solid #e9e9e9;">
				<span style="width:100px;">订单总额：</span>￥{{money}}（含运费￥{{freight}}）
			</div>
			<div class="pay_way" style="font-size: 14px; border-bottom: 1px solid #e9e9e9;">
				<span style="width:100px;">应付总额：</span>￥{{shouldPay}}
			</div>
			<div class="main_btn">
				<button ng-click="orderSubmit()">
						提交订单
				</button>
			</div>
		</div>
		<script type="text/javascript" src="../../js/common.js"></script>
		<script type="text/javascript" src="../../js/angular.min.js"></script>
		<script type="text/javascript" src="../../js/buyCar.js"></script>
		<script type="text/javascript" src="../../js/localData.js"></script>
		<script type="text/javascript" src="../../js/md5.js"></script>
		<script type="text/javascript" src="../../js/request.js"></script>
		<script type="text/javascript" src="../../script/shopping/conformOrder.js"></script>
	</body>

</html>